package CalculDesSalaires.impl;

import java.util.HashSet;

/**
 * execution de l'exercice 2. 
 * affichage sur la console ainsi que dans un fichier texte.
 * @author Hetoo
 *
 */
public class Exercice2 {

	/**
	 * Execution du programme principal.
	 * @param args
	 */
	public static void main(String[] args) {

		/**
		 * Déclaration de la company. 
		 */
		HashSet<Employee> listEmployee = new HashSet<Employee>() ; 
		HashSet<Mentee> listMentee = new HashSet<Mentee>() ; 
		Company Company1 = new Company("Company1",listEmployee,listMentee);

		/**
		 * Création des employés.
		 */
		Employee employe1 = new Employee("Jean", 1000.0, 5200);
		Mentee mentee1 = new Mentee("Vincent", 1000.0, 5201);		
		Mentee mentee2 = new Mentee("Camille", 1000.0, 5202);
		Mentor mentor1 = new Mentor("Marc", 1000.0, 5203);
		
		/**
		 * Initialisation des langages.
		 */
		mentor1.setLanguage("Java"); 
		mentee1.setLanguage("Java");
		mentee2.setLanguage("Java");
		employe1.setLanguage("C++");
		
		/**
		 * Ajout des employés.
		 */
		Company1.addEmployee(employe1);
		Company1.addEmployee(mentor1);
		Company1.addEmployee(mentee1);
		Company1.addEmployee(mentee2);
		
		Company1.addEmployee(mentee1, mentor1);
		Company1.addEmployee(mentee2, mentor1);
		
		/**
		 * Affichage des salaires mensuels d'un employé.
		 */
		Company1.displayEmployees();
		Company1.displayReport("report.txt");
				
	}

}